-- GENERATED SPELL FOR [Gordok Reaver] --


function spell0_11450(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11450', 572, 1)
end

function spell1_11450(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(13737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11450', 5275, 1)
end

function spell2_11450(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11450', 30251, 1)
end

function Sorts_11450(pUnit, Event)
local choix_sorts_11450 = math.random(0, 2)
if choix_sorts_11450 == 0 then
pUnit:RegisterEvent('spell0_11450', 1, 1)
end
if choix_sorts_11450 == 1 then
pUnit:RegisterEvent('spell1_11450', 1, 1)
end
if choix_sorts_11450 == 2 then
pUnit:RegisterEvent('spell2_11450', 1, 1)
end
end

function mob11450_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11450', math.random(1500, 3000), 1)
end

function mob11450_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11450_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11450_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11450, 1, 'mob11450_Action')
RegisterUnitEvent(11450, 2, 'mob11450_Leave')
RegisterUnitEvent(11450, 3, 'mob11450_Kill')
RegisterUnitEvent(11450, 4, 'mob11450_Die')
